﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DLV.Utilities;

namespace DLV.Data.Entities
{
    public class ProfitCalculatorController
    {
        public int InsertProfitCalculator(ProfitCalculatorInfo info)
        {
            return SQL.InsertProfitCalculator(info.TourId, info.PercentAdults, info.PercentChild, info.PercentBaby, info.PercentTotal, info.PriceOnCustomer, info.Note1, info.Note2, info.Note3, info.Note4, info.Note5, info.Note6, info.Note7, info.Note8, info.Note9, info.Note10, info.Note11, info.Note12, info.Note13, info.Note14, info.Note15, info.Note16);
        }
        public void UpdateProfitCalculator(ProfitCalculatorInfo info)
        {
            SQL.UpdateProfitCalculator(info.ProfitCalculatorId,info.TourId, info.PercentAdults, info.PercentChild, info.PercentBaby, info.PercentTotal, info.PriceOnCustomer, info.Note1, info.Note2, info.Note3, info.Note4, info.Note5, info.Note6, info.Note7, info.Note8, info.Note9, info.Note10, info.Note11, info.Note12, info.Note13, info.Note14, info.Note15, info.Note16);
        }
        public void DeleteProfitCalculator(ProfitCalculatorInfo info)
        {
            DeleteProfitCalculator(info.ProfitCalculatorId);
        }
        public void DeleteProfitCalculator(int profitCalculatorId)
        {
            SQL.DeleteProfitCalculator(profitCalculatorId);
        }
        public ProfitCalculatorInfo GetProfitCalculator(int profitCalculatorId)
        {
            return CBO.FillObject<ProfitCalculatorInfo>(SQL.GetProfitCalculator(profitCalculatorId));
        }
        public List<ProfitCalculatorInfo> ListProfitCalculator()
        {
            return CBO.FillCollection<ProfitCalculatorInfo>(SQL.ListProfitCalculator());
        }
       
    }
}
